package com.ruoyi.pack.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.ruoyi.pack.domain.PackWarehouseFence;

/**
 * 仓库电子围栏Mapper接口
 *
 * @author ruoyi
 */
@Mapper
public interface PackWarehouseFenceMapper
{
    /**
     * 查询仓库电子围栏
     *
     * @param fenceId 仓库电子围栏主键
     * @return 仓库电子围栏
     */
    public PackWarehouseFence selectPackWarehouseFenceByFenceId(Long fenceId);

    /**
     * 查询仓库电子围栏列表
     *
     * @param packWarehouseFence 仓库电子围栏
     * @return 仓库电子围栏集合
     */
    public List<PackWarehouseFence> selectPackWarehouseFenceList(PackWarehouseFence packWarehouseFence);

    /**
     * 根据仓库ID查询电子围栏列表
     *
     * @param warehouseId 仓库ID
     * @return 仓库电子围栏集合
     */
    public List<PackWarehouseFence> selectPackWarehouseFenceByWarehouseId(Long warehouseId);

    /**
     * 新增仓库电子围栏
     *
     * @param packWarehouseFence 仓库电子围栏
     * @return 结果
     */
    public int insertPackWarehouseFence(PackWarehouseFence packWarehouseFence);

    /**
     * 修改仓库电子围栏
     *
     * @param packWarehouseFence 仓库电子围栏
     * @return 结果
     */
    public int updatePackWarehouseFence(PackWarehouseFence packWarehouseFence);

    /**
     * 删除仓库电子围栏
     *
     * @param fenceId 仓库电子围栏主键
     * @return 结果
     */
    public int deletePackWarehouseFenceByFenceId(Long fenceId);

    /**
     * 批量删除仓库电子围栏
     *
     * @param fenceIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePackWarehouseFenceByFenceIds(Long[] fenceIds);

    /**
     * 删除仓库的所有电子围栏
     *
     * @param warehouseId 仓库ID
     * @return 结果
     */
    public int deletePackWarehouseFenceByWarehouseId(Long warehouseId);
}
